package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Account;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface AccountMapper {

    Account getAccountByUsernameAndPassword(Account account);

    void insertAccount(Account account);

    Account getAccountByUsername(String username);

    void updateAccount(Account account);

    ArrayList<Account> getAccountList();

    void deleteAccount(String username);

    void recoverAccount(String username);

    void resetPassword(String username);

    Account getAccountByEmail(String receiver);

    Account getAdminAccountByUsernameAndPassword(Account account);

    Account getAdminAccountByEmail(String receiver);
}
